<?xml version="1.0" ?>
<DbPopConfig>
	<exec threadCount='1' />
	<userGroups domain="DOMAINNMAME" webserver="WEBSERVERNAME" organization="ORGANIZATIONNAME">
            <userGroup name='USERBASE' startidx='1' count='1' password='PASSWORD'/>
	</userGroups>
	<globalTags>
            <tag name="allbusinessunits">
	       <query>
	         <column name="businessunitid" />
	         <entity name="businessunit" />
	       </query>
	    </tag>
	</globalTags>
	<objectDist>
		<businessunit count="20" name="replace(randomstring,5,10)" parentbusinessunitid="gettag(allbusinessunits,getrandom,businessunitid.Value)" save_1="settag(regionid1,businessunit,entityid)" save_2="settype(businessunitidtype)" />
		<uomschedule count='50' save_1='settag(uomscheduleid,uomschedule,entityid)' save_2='settype(uomscheduleidtype)' save_3='settag_filter(baseuomid,uom,uomid,uomscheduleid)'>
			<uom count='5' uomscheduleid='getdyntag(uomscheduleid)' baseuom='getdyntag(baseuomid,getlast,uomid.Value)' save_1='settag(uomid,uom,all)'/>
		</uomschedule>
		<discounttype count='50' save_1='settag(discounttypeid,discounttype,entityid)' save_2='settype(discounttypeidtype)'>
			<discount count='1' save_1='settag(discountid,discount,entityid)' save_2='settype(discountidtype)' discounttypeid='getdyntag(discounttypeid)' lowquantity='5' highquantity='10'></discount>
			<discount count='1' save_1='settag(discountid,discount,entityid)' save_2='settype(discountidtype)' discounttypeid='getdyntag(discounttypeid)' lowquantity='15' highquantity='20'></discount>
			<discount count='1' save_1='settag(discountid,discount,entityid)' save_2='settype(discountidtype)' discounttypeid='getdyntag(discounttypeid)' lowquantity='25' highquantity='30'></discount>
			<discount count='1' save_1='settag(discountid,discount,entityid)' save_2='settype(discountidtype)' discounttypeid='getdyntag(discounttypeid)' lowquantity='35' highquantity='40'></discount>
			<discount count='1' save_1='settag(discountid,discount,entityid)' save_2='settype(discountidtype)' discounttypeid='getdyntag(discounttypeid)' lowquantity='45' highquantity='50'></discount>
		</discounttype>
		<pricelevel count='5' save_1='settag(pricelevelid,pricelevel,entityid)' save_2='settype(pricelevelidtype)'>	
			<product count='10' save_1='settag(productid,product,entityid)' save_2='settype(productidtype)'
					save_3='settag_filter(productuomid,product,defaultuomid,productid)'
					save_4='settag_filter(productuomscheduleid,product,defaultuomscheduleid,productid)' 
					defaultuomscheduleid='getdyntag(uomscheduleid,getrandom,entityid)' defaultuomid='getdyntag(uomid,getfiltered,uomid.Value,uomscheduleid.Value,defaultuomscheduleid)'>
				<productpricelevel count='1' productid='getdyntag(productid)' uomscheduleid='getdyntag(productuomscheduleid,getlast,defaultuomscheduleid.Value)'
					pricelevelid='getdyntag(pricelevelid)' uomid='getdyntag(productuomid,getlast,defaultuomid.Value)' />
			</product>
		</pricelevel>
		<equipment count='20' businessunitid="gettag(allbusinessunits,getrandom,businessunitid.Value)" save_1="settag(trucks,equipment,entityid)" save_2="settag(allequipment,equipment,entityid)"/>
		<equipment count='20' businessunitid="gettag(allbusinessunits,getrandom,businessunitid.Value)" save_1="settag(technicians,equipment,entityid)" save_2="settag(allequipment,equipment,entityid)"/>
		<equipment count='20' businessunitid="gettag(allbusinessunits,getrandom,businessunitid.Value)" save_1="settag(toolsets,equipment,entityid)" save_2="settag(allequipment,equipment,entityid)"/>

		<constraintbasedgroup count='1' businessunitid="gettag(allbusinessunits,getrandom,businessunitid.Value)" constraints="getdyntag(trucks,getconstraints,entityid)" save_1="settag(groupTrucks,constraintbasedgroup,entityid)"/>
		<constraintbasedgroup count='1' businessunitid="gettag(allbusinessunits,getrandom,businessunitid.Value)" constraints="getdyntag(technicians,getconstraints,entityid)" save_1="settag(groupTechnicians,constraintbasedgroup,entityid)"/>
		<constraintbasedgroup count='1' businessunitid="gettag(allbusinessunits,getrandom,businessunitid.Value)" constraints="getdyntag(toolsets,getconstraints,entityid)" save_1="settag(groupToolsets,constraintbasedgroup,entityid)"/>

		<resourcespec count="1" businessunitid="gettag(allbusinessunits,getrandom,businessunitid.Value)" groupobjectid="getdyntag(groupTrucks)" save_1="settag(subResourceSpec,resourcespec,entityid)"/>
		<resourcespec count="1" businessunitid="gettag(allbusinessunits,getrandom,businessunitid.Value)" groupobjectid="getdyntag(groupTechnicians)" save_1="settag(subResourceSpec,resourcespec,entityid)"/>
		<resourcespec count="1" businessunitid="gettag(allbusinessunits,getrandom,businessunitid.Value)" groupobjectid="getdyntag(groupToolsets)" save_1="settag(subResourceSpec,resourcespec,entityid)"/>

		<constraintbasedgroup count='1' businessunitid="gettag(allbusinessunits,getrandom,businessunitid.Value)" constraints="getdyntag(subResourceSpec,getconstraints,entityid)" save_1="settag(toplevelGroup,constraintbasedgroup,entityid)"/>

		<resourcespec count="1" businessunitid="gettag(allbusinessunits,getrandom,businessunitid.Value)" groupobjectid="getdyntag(toplevelGroup)" save_1="settag(topResourceSpec,resourcespec,entityid)"/>

		<service count="1" resourcespecid="getdyntag(topResourceSpec)" save_1="settag(serviceid,service,entityid)"/>
	</objectDist>
</DbPopConfig>